package com.jiuyue.movehouse.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.jiuyue.movehouse.entity.CarType;
import com.jiuyue.movehouse.mapper.CarTypeMapper;
import com.jiuyue.movehouse.service.CarTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yourFather
 * @since 2022-02-11
 */
@Service
public class CarTypeServiceImpl extends ServiceImpl<CarTypeMapper, CarType> implements CarTypeService {

    @Override
    public void updateCarType(CarType carType) {
        this.update(Wrappers.<CarType>lambdaUpdate().eq(CarType::getId,carType.getId()).set(CarType::getPrice,carType.getPrice()));
    }
}
